#include "ros/ros.h"
#include "learning_communication/Person.h"
void chatterCallBack(const learning_communication::Person::ConstPtr& msg){
    ROS_INFO("Publish Person Info:name:%s age:%d sex:%d",msg->name.c_str(),msg->age,msg->sex);
}
int main(int argc,char **argv){
    ros::init(argc,argv,"person_subscriber");
    ros::NodeHandle n;
    ros::Subscriber sub = n.subscribe("/person_info",10,chatterCallBack);
    ros::spin();
    return 0;
}